<template>
  <div id="app">
    <router-view></router-view>

    <van-tabbar route v-model="active">
      <van-tabbar-item name="home" replace to="/" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item name="list" replace to="/list" icon="apps-o">列表</van-tabbar-item>
      <van-tabbar-item name="shopcar" replace to="/shopcar" icon="shopping-cart-o">购物车</van-tabbar-item>
      <van-tabbar-item name="user" replace to="/user" icon="contact">用户</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      active: 0
    };
  }
};
</script>

<style>
</style>
